/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const componentsRouter = {
  path: '/components',
  component: Layout,
  redirect: 'noRedirect',
  name: 'ComponentDemo',
  meta: {
    title: '招聘管理',
    icon: 'component',
    roles: ['artisan', 'admin']
  },
  children: [
    {
      path: 'tinymce',
      component: () => import('@/views/labArtisan/ReleasePlan'),
      name: 'TinymceDemo',
      meta: { title: '发布招聘计划书' }
    },
    {
      path: 'markdown',
      component: () => import('@/views/labArtisan/ViewRecruit'),
      name: 'MarkdownDemo',
      meta: { title: '查看应聘学生' }
    },
    {
      path: 'json-editor',
      component: () => import('@/views/labArtisan/InputResult'),
      name: 'JsonEditorDemo',
      meta: { title: '发布面试结果' }
    },
    {
      path: 'split-pane',
      component: () => import('@/views/labArtisan/EstablishArchives'),
      name: 'SplitpaneDemo',
      meta: { title: '建立录用人员档案' }
    }
  ]
}

export default componentsRouter
